<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title th:replace="${title}">首页</title>
    <link rel="stylesheet" href="../static/css/semantic.min.css" th:href="@{/css/semantic.min.css}">
    <link rel="stylesheet" type="text/css" href="../static/css/typo.css" th:href="@{/css/typo.css}" />
    <link rel="stylesheet" type="text/css" href="../static/css/animate.css" th:href="@{/css/animate.css}" />
    <link rel="stylesheet" type="text/css" href="../static/plugins/prism/prism.css" th:href="@{/plugins/prism/prism.css}" />
    <link rel="stylesheet" type="text/css" href="../static/plugins/prism/prism-toolbar.css" th:href="@{/plugins/prism/prism-toolbar.css}" />
    <link rel="stylesheet" type="text/css" href="../static/plugins/tocbot/tocbot.css" th:href="@{/plugins/tocbot/tocbot.css}" />
    <link rel="stylesheet" type="text/css" href="../static/css/manster.css" th:href="@{/css/manster.css}" />
    <link rel="stylesheet" type="text/css" href="../static/plugins/jqcloud/jqcloud.min.css" th:href="@{/plugins/jqcloud/jqcloud.min.css}" />
    <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{/favicon.ico}"/>


</head>
<body>
<!-- 导航 -->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">MansterBlog</h2>
            <a href="#" th:href="@{/index}" class="m-item item m-mobile-hide" th:classappend="${n==1} ? 'active'"><i class="small home icon"></i>首页</a>
            <a href="#" th:href="@{/types/-1}" class="m-item item m-mobile-hide" th:classappend="${n==2} ? 'active'"><i class="small idea icon"></i>分类</a>
            <a href="#" th:href="@{/tags}" class="m-item item m-mobile-hide" th:classappend="${n==3} ? 'active'"><i class="small idea icon"></i>标签</a>
            <a href="#" th:href="@{/archives}" class="m-item item m-mobile-hide" th:classappend="${n==4} ? 'active'"><i class="small clone icon"></i>归档</a>
            <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide" th:classappend="${n==5} ? 'active'"><i class="small info icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <form name="search" action="#" th:action="@{/search}" target="_blank" method="post">
                    <div class="ui icon inverted transparent input ">
                        <input type="text" name="query"  class="inputSearch" placeholder="搜索..." th:value="${query}">
                        <i class="search link icon" onclick="document.forms['search'].submit()"></i>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!-- 底部 -->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-large">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/weichat.jpg" id="weixin" th:src="@{/images/weichat.jpg}" class="ui rounded image" alt="" style="width: 110px;">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新Blog</h4>
                <div id="newblog-container">
                    <div class="ui inverted link list" th:fragment="newbloglist">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog : ${newblogs}" th:text="${blog.title}">java 多线程</a>
                        <!--/*-->
                        <a href="#" class="item">java 集合</a>
                        <a href="#" class="item">java 反射</a>
                        <!--*/-->
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="https://gitee.com/manster1231" target="_blank" class="item">Gitee：https://gitee.com/kjq</a>
                    <a href="#" class="item">Email：2344556@163.com</a>
                    <a href="#" class="item">QQ：2344556</a>
                </div>
            </div>
            <div class="six wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">康家启</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">这里是康家启的博客，有关我所知道的一切都愿与你交流</p>
                <p class="m-text-thin m-text-spaced m-opacity-mini">Talk is cheap show me the code</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">CopyRight © 2023 - 2022 康家启 Designed by 康家启</p>
    </div>
</footer>

<th:block th:fragment="script">
    <script src="../static/js/jquery-3.3.1.js" th:src="@{/js/jquery-3.3.1.js}"></script>
    <script src="../static/js/semantic.min.js" th:src="@{/js/semantic.min.js}"></script>
    <script src="../static/plugins/prism/prism.js" th:src="@{/plugins/prism/prism.js}"></script>
    <script src="../static/plugins/prism/prism-toolbar.js" th:src="@{/plugins/prism/prism-toolbar.js}"></script>
    <script src="../static/plugins/prism/prism-copy-to-clipboard.js" th:src="@{/plugins/prism/prism-copy-to-clipboard.js}"></script>
    <script src="../static/plugins/tocbot/tocbot.js" th:src="@{/plugins/tocbot/tocbot.js}"></script>
    <script src="../static/plugins/qrcode/qrcode.js" th:src="@{/plugins/qrcode/qrcode.js}"></script>
    <script src="../static/plugins/scrollTo/jquery.scrollTo.min.js" th:src="@{/plugins/scrollTo/jquery.scrollTo.min.js}"></script>
    <script src="../static/plugins/waypoint/jquery.waypoints.min.js" th:src="@{/plugins/waypoint/jquery.waypoints.min.js}"></script>
    <script src="../static/js/snow.js" th:src="@{/js/snow.js}" ></script>
    <script src="../static/plugins/jqcloud/jqcloud.min.js" th:src="@{/plugins/jqcloud/jqcloud.min.js}"></script>
    <script>
        $('#newblog-container').load(/*[[@{/footer/newblog}]]*/"/footer/newblog");
    </script>
</th:block>
</body>
</html>